package com.css.economy.evaluate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.css.handler.GeometryTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rabbitmq.client.Channel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 * @author Dbj
 * @date 2024年09月23日  18:58
 */
@Data
@TableName("basic_economy")
@Accessors(chain = true)
public class EconomyEvaluate implements Serializable {
    private String id;
    private String earthQuakeId;
    private String influenceVersion;
    private String intensity;
    private BigDecimal structureLoss;
    private BigDecimal lifeLoss;
    private BigDecimal otherLoss;
    @TableField(value = "geom",typeHandler = GeometryTypeHandler.class)
    private String geom;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operateTime;
}
